package com.ruoyi.goods.GoodsStore.domain;

import java.math.BigDecimal;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 出入库单据明细对象 stock_bill_item
 *
 * @author godlei
 * @date 2022-11-28
 */
@Setter
@Getter
@TableName("stock_bill_item")
public class StockBillItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 物品id */
    @Excel(name = "物品id")
    @TableField("goods_id")
    private Long goodsId;

    /** 数量 */
    @Excel(name = "数量")
    @TableField("amounts")
    private Long amounts;

    /** 单价 */
    @Excel(name = "单价")
    @TableField("price")
    private BigDecimal price;

    /** 单据id */
    @Excel(name = "单据id")
    @TableField("bill_id")
    private Long billId;

    /** 0 正常, -1 作废 */
    @Excel(name = "0 正常, -1 作废")
    @TableField("state")
    private Integer state;

    @TableField(exist = false)
    private String goodsName;

}
